package ru.example.mongotest2.service;

import ru.example.mongotest2.domain.Person;

import java.util.List;
import java.util.Optional;

public interface PersonService {

    Optional<Person> findById(String id);

    List<Person> findByAge(int age);

    List<Person> getAll();

    void create(Person person);

    void delete(String id);

    Person update(Person update);

}
